package cc.autoapi.pucong.auto.flow.persistence.repository.api;

import cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.api.design.ApiNodeParamsVo;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.api.design.ApiNodeRelationVo;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.api.design.ApiNodeVo;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.node.AiNodeScriptParamIn;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.node.AiNodeScriptParamOut;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.node.TaskNode;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.node.TaskNodeRelation;

import java.util.List;

/**
 * @author pucong
 * @description api 关联节点信息 service接口
 * @create 2024-09-24
 */
public interface ApiNodeService {

    String getScriptByAi(String nodeName, String desc, String nodeType,
                         List<AiNodeScriptParamIn> ins, List<AiNodeScriptParamOut> outs);

    List<TaskNode> getTaskNodeList(List<ApiNodeVo> addNodeList, List<ApiNodeParamsVo> apiNodeParamsVoList);

    List<TaskNodeRelation> getTaskNodeRelationList(List<ApiNodeRelationVo> addRelateList);

    String getTextByAi(String desc, String content);
}
